#猜拳游戏
import random
from typing import List
while True:
    input_str=input("请输入石头,剪刀,布:")
    if input_str=="石头":
        player=1
    elif input_str=="剪刀":
        player = 2
    else:
        player=3
    computer_player = random.randint(1, 3)
    if computer_player==1:
        print("电脑出拳:石头")
    elif computer_player==2:
        print("电脑出拳:剪刀")
    else:
        print("电脑出拳:布")
    if (player==1 and computer_player==2) or (player==2  and computer_player==3) or (player==3  and computer_player==1):
        print("赢了")
        break
    elif player == computer_player:
        print("平局")
    else:
        print("我不服接着来")
